home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Mouse.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  1.9 KB  |  14 lines

  1. class Mouse
  2. {
  3.  
  4.     function addListener(newListener)                                    // It registers an object to receive notifications of the onMouseDown, onMouseMove, and onMouseUp listeners.
  5.     function hide()                                                      // It hides the pointer in a SWF file. 
  6.     function removeListener(listener)                                    // It removes an object that was previously registered with addListener().
  7.     function show()                                                      // It displays the mouse pointer in a SWF file. 
  8.  
  9.     function onMouseDown()                                               // Listener. It is notified when the mouse is pressed. To use the onMouseDown listener, you must create a listener object. You can then define a function for onMouseDown and use addListener() to register the listener with the Mouse object,as in the following code:
  10.     function onMouseMove()                                               // Listener. It is notified when the mouse moves. To use the onMouseMove listener, you must create a listener object. You can then define a function for onMouseMove and use addListener() to register the listener with the Mouse object, as in the following code:
  11.     function onMouseUp()                                                 // Listener. It is notified when the mouse is released. To use the onMouseUp listener, you must create a listener object. You can then define a function for onMouseUp and use addListener() to register the listener with the Mouse object, as in the following code:
  12.     function onMouseWheel()                                              // Listener. It is notified when the user rolls the mouse wheel. To use the onMouseWheel listener, you must create a listener object. You can then define a function for onMouseWheel and use addListener() to register the listener with the Mouse object.
  13. }
  14.